package com.thkj.modules.food.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.thkj.modules.food.entity.TblFoodProp;
import com.thkj.modules.food.service.TblFoodPropService;

import dp.dao.PagingList;
import dp.service.BaseService;

@Service
public class TblFoodPropServiceImpl extends BaseService implements TblFoodPropService {
    public void insertTblFoodProp(TblFoodProp t){
        dao.insert("com.thkj.mapper.TblFoodProp.insert", t);
    }

    public int updateTblFoodProp(TblFoodProp t){
        int row = dao.update("com.thkj.mapper.TblFoodProp.update", t);
        return row;
    }

    public int deleteTblFoodProp(String t ){
        return dao.delete("com.thkj.mapper.TblFoodProp.delete", t);
    }

    public TblFoodProp getTblFoodPropById(String t){
        return dao.queryForObject("com.thkj.mapper.TblFoodProp.getById", t, TblFoodProp.class);
    }

	@Override
	public PagingList<Map> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblFoodProp.query",param, pageIndex, pageSize, Map.class);
	}

}